package com.lcdpg.lcdp.auth.service;

import com.lcdpg.lcdp.auth.domain.LoginRequest;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Service;

@Service
public interface AuthService {
    /**
     * 用户登录认证
     * @param request 登录请求参数
     * @return 生成的JWT令牌
     * @throws AuthenticationException 认证失败时抛出
     */
    String login(LoginRequest request) throws AuthenticationException;
}
